﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 怪物
    /// </summary>
    public class Monster:TdyxObjects
    {
        int level=0;
        int normalExp=0;

        /// <summary>
        /// 怪物等级
        /// </summary>
        public int Level
        {
            get { return level; }
            set { level = value; }
        }

        /// <summary>
        /// 默认经验值
        /// </summary>
        public int NormalExp
        {
            get { return normalExp; }
            set { normalExp = value; }
        }

        /// <summary>
        /// 构造一个怪物
        /// </summary>
        public Monster()
        {
        }

        /// <summary>
        /// 构造一个怪物
        /// </summary>
        /// <param name="name">怪物名称</param>
        /// <param name="code">怪物代码</param>
        public Monster(string name, byte[] code)
        {
            this.name = name;
            this.Code = code;
        }

        /// <summary>
        /// 构造一个怪物
        /// </summary>
        /// <param name="name">怪物名称</param>
        /// <param name="code">怪物代码</param>
        /// <param name="level">怪物等级</param>
        public Monster(string name,int level, byte[] code)
        {
            this.level = level;
            this.name = name;
            this.Code = code;
        }
    }
}
